$OpenBSD: patch-configure,v 1.3 2016/11/01 13:04:15 jsg Exp $
--- configure.orig	Wed Oct 12 07:08:18 2016
+++ configure	Tue Nov  1 21:31:29 2016
@@ -386,6 +386,9 @@ EOF
 	fi
 done # for parm in ...
 
+PNG_CFLAGS=$(pkg-config --cflags libpng)
+PNG_LIBS=$(pkg-config --libs libpng)
+
 for ac_option in $@; do
 	case "$ac_option" in
 	--enable-vorbis)          _vorbis=yes     ;;
@@ -1068,7 +1071,7 @@ test $TMPR -eq 0 || exit 1	# check exit code of subshe
 # for the smaller sizes.
 echo_n "Alignment required... "
 case $_host_cpu in
-	i[3-6]86 | x86_64 | ppc*)
+	i[3-6]86 | amd64 | x86_64 | powerpc* | ppc*)
 		# Unaligned access should work
 		_need_memalign=no
 		;;
